<?php

class Application_Model_User extends Ahs_Model
{
    protected $_id;
    protected $_givenname;
    protected $_familyname;
    protected $_password;
    protected $_email;
    protected $_active;
    protected $_role;
    protected $_creationdate;
    protected $_deleted;
    
    public function getId() {
        return $this->_id;
    }

    public function setId($_id) {
        $this->_id = $_id;
    }

    public function getGivenname() {
        return $this->_givenname;
    }

    public function setGivenname($_givenname) {
        $this->_givenname = $_givenname;
    }

    public function getFamilyname() {
        return $this->_familyname;
    }

    public function setFamilyname($_familyname) {
        $this->_familyname = $_familyname;
    }

    public function getPassword() {
        return $this->_password;
    }

    public function setPassword($_password) {
        $this->_password = sha1($_password);
    }

    public function getEmail() {
        return $this->_email;
    }

    public function setEmail($_email) {
        $this->_email = $_email;
    }

    public function getActive() {
        return $this->_active;
    }

    public function setActive($_active) {
        $this->_active = $_active;
    }

    public function getRole() {
        return $this->_role;
    }

    public function setRole($_role) {
        $this->_role = $_role;
    }

    public function getCreationdate() {
        return $this->_creationdate;
    }

    public function setCreationdate($_creationdate) {
        $this->_creationdate = $_creationdate;
    }

    public function getDeleted() {
        return $this->_deleted;
    }

    public function setDeleted($_deleted) {
        $this->_deleted = $_deleted;
    }

}

